﻿using System;
using CompactMapper.Orm.Annotations;
using CompactMapper.Orm.Contracts;
using CompactMapper.Orm.UnitOfWork.Mappings;

namespace CompactMapper.Orm.Tests
{
    [Table]
    public class Label : IKeyedPersistent
    {
        [GuidPrimaryKey]
        public IKey Key { get; set; }

        [TextColumn]
        public String Name { get; set; }

        public Label()
        {
            Key = AbstractKeyFactory.For<Guid>().New();
        }
    }
}
